package com.axisdesign.client;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class FrameManager extends Composite {
	VerticalPanel mainPanel;
	SimplePanel upperMaster;
	
	public static MainFrame mainFrame = new MainFrame();
	public static BottomFrame bottomFrame = new BottomFrame();
	
	public FrameManager() {
		mainPanel = new VerticalPanel();
		mainPanel.setStyleName("frameManager");
		
		upperMaster = new SimplePanel();
		upperMaster.setStyleName("upperMaster");
		
		init();
		initWidget(mainPanel);
	}
	
	private void init() {
		upperMaster.add(mainFrame);
		mainPanel.add(upperMaster);
		mainPanel.add(bottomFrame);
		DOM.setElementProperty(upperMaster.getElement(), "align", "center");
		DOM.setElementProperty(bottomFrame.getElement(), "align", "center");
		DOM.setElementProperty(mainPanel.getElement(), "align", "center");
	}
}
